from flask import request
from app.routes.mange import mangebp
from app.utils.responseFunc import returnMsg


@mangebp.before_request
def checkIsLogin():
    token = request.headers.get("token")
    if token != "sadjhsdfsdd76347239483jxdhfjdsfertr8348":
        return returnMsg(code=9,msg="未登录")
